/* 
 * File:   ComplexParameterCommand.h
 * Author: Gab'z
 *
 * Created on 5 juin 2012, 12:27
 */

#ifndef COMPLEXPARAMETERCOMMAND_H
#define	COMPLEXPARAMETERCOMMAND_H

#include "ParametersCommand.h"

namespace calculator {

    class ComplexParameterCommand : public ParametersCommand {
        friend class CommandMap;

    public:
        virtual ComplexParameterCommand* clone() const;

        void apply(Parameters* parameters) const;
        virtual ~ComplexParameterCommand();
        const Memento* createMemento() const throw (CommandException);
        void restoreFromMemento(const Memento* memento) const throw (MementoException);
        
    protected:
        ComplexParameterCommand(const std::string name);
        ComplexParameterCommand(const ComplexParameterCommand& orig);
    };

}

#endif	/* COMPLEXPARAMETERCOMMAND_H */

